<template>
	<div class="kComponent" :class="'design'">
		<uni-forms :model="datas.model" 
		:ref="datas.ref" 
		:rules="datas.rules" 
		:label-position="datas.labelPosition"
		:label-width="datas.labelWidth + 'px'" 
		label-align="center" 
		class="widget-kform-style">

			<div class="widget-subkfrom-style">
				<dragContainer :parentComponent="parentComponent"> </dragContainer>
			</div>
		</uni-forms>
		<!-- 删除组件 -->
		<slot name="deles" />
	</div>
</template>

<script>
	export default {
		name: 'kForm',
		props: {
			datas: Object,
			parentComponent: Object
		},
		data() {
			return {

				// currentIndex: -1
			}
		},
		mounted() {},
		methods: {

		}
	}
</script>

<style scoped lang="scss">
	.design {
		.widget-kform-style {
			padding: 5px;

			.widget-subkfrom-style {
				min-height: 40px;
				border: 0.5px dashed $uni-color-primary;
				// background-color: #f5f5f5;
			}
		}


	}
</style>